﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using WpfFeeCalculator.FeeWcfService;
using WpfFeeCalculator.Model;

//using Man.Applications.Fee.ClientSide.FeeClient.FeeWebReference;

namespace WpfFeeCalculator.Controllers
{
    public class PortfolioController : IPortfolioController
    {
        private readonly IFeeFacade webservice;

        private List<Portfolio> portfolios;

        public PortfolioController(IFeeFacade webservice)
        {
            this.webservice = webservice;
       }

        public IObservable<System.Reactive.EventPattern<GetPortfoliosCompletedEventArgs>> GetPortfoliosAllAsync()
        {
            return webservice.GetPortfoliosAllAsync();
        }
    }
}
